/*
 * 版权所有 (C) 2015 知启蒙(ZHIQIM) 保留所有权利。
 * 
 * 欢迎到知启蒙网站（https://www.zhiqim.com）购买正版软件，知启蒙还提供许多开源框架和软件。
 * 
 * 1、本软件产品所有源代码受《中华人民共和国著作权法》和其他有关法律、法规的保护，其所有知识产权归湖南知启蒙科技有限公司所有；
 * 2、禁止复制和修改。不得复制修改、翻译或改编本软件所有源代码，或者基于本软件产品创作衍生作品；
 * 3、禁止进行逆向工程。不得对本软件的源代码进行逆向工程、反编译或试图以其他方式发现软件的源代码；
 * 4、个别授权：如需进行商业性的销售、复制、分发，包括但不限于软件销售、预装、捆绑等，必须获得知启蒙的书面授权和许可；
 * 5、保留权利：本注释未明示授权的其他一切权利仍归知启蒙所有，任何人使用其他权利时必须获得知启蒙的书面同意。
*/
package net.redxyz.top.repost.dbo;

import java.io.Serializable;

import org.zhiqim.kernel.annotation.AnAlias;
import org.zhiqim.kernel.annotation.AnNew;
import org.zhiqim.kernel.json.Jsons;
import org.zhiqim.orm.annotation.*;

/**
 * 自动上架计划详情表 对应表《ASS_REPOST_PLAN_DETAIL》
 */
@AnAlias("AssRepostPlanDetail")
@AnNew
@AnTable(table="ASS_REPOST_PLAN_DETAIL", key="PLAN_ID,NUM_IID", type="MyISAM")
@AnIndex({@AnIndexValue(name="IX_ASS_REPOST_PLAN_DETAIL_TIMER", column="OPERATE_STATUS,PLAN_WEEK,PLAN_TIME", unique=false),
          @AnIndexValue(name="IX_ASS_REPOST_PLAN_DETAIL_STATUS", column="NICK,ITEM_STATUS", unique=false),
          @AnIndexValue(name="IX_ASS_REPOST_PLAN_DETAIL_TIME", column="ITEM_STATUS", unique=false)})
public class AssRepostPlanDetail implements Serializable
{
    private static final long serialVersionUID = 1L;

    @AnTableField(column="PLAN_ID", type="string,32,char", notNull=true)    private String planId;    //1.计划编码
    @AnTableField(column="NUM_IID", type="long", notNull=true)    private long numIid;    //2.宝贝编号
    @AnTableField(column="NICK", type="string,50", notNull=true)    private String nick;    //3.用户昵称
    @AnTableField(column="PLAN_WEEK", type="byte", notNull=true)    private int planWeek;    //4.计划星期值，1－7表示星期1至星期日
    @AnTableField(column="PLAN_TIME", type="string,8,char", notNull=true)    private String planTime;    //5.计划时间，格式：HH:mm:ss
    @AnTableField(column="ITEM_TITLE", type="string,200", notNull=true)    private String itemTitle;    //6.宝贝标题
    @AnTableField(column="ITEM_NUM", type="int", notNull=true)    private int itemNum;    //7.宝贝数目
    @AnTableField(column="ITEM_STATUS", type="byte", notNull=true)    private int itemStatus;    //8.宝贝状态，0表示计划中，1表示新增计划中，2表示手中排除计划中，3表示下架导致排除计划，4表示延迟调整
    @AnTableField(column="ITEM_SEQUENCE", type="int", notNull=true)    private int itemSequence;    //9.宝贝计划序列号
    @AnTableField(column="ITEM_PIC_URL", type="string,1024", notNull=true)    private String itemPicUrl;    //10.宝贝图片
    @AnTableField(column="CID", type="long", notNull=false)    private long cid;    //11.宝贝类目
    @AnTableField(column="DELIST_TIME", type="string,19", notNull=true)    private String delistTime;    //12.宝贝下架时间
    @AnTableField(column="OPERATE_TIME", type="string,19", notNull=false)    private String operateTime;    //13.上架时间
    @AnTableField(column="OPERATE_STATUS", type="byte", notNull=true)    private int operateStatus;    //14.上架状态0表示未调整,1表示调整成功，２表示执调整失败，3无需调整
    @AnTableField(column="OPERATE_DETAIL", type="string,1024", notNull=false)    private String operateDetail;    //15.上架描述，失败填写失败描述

    public String toString()
    {
        return Jsons.toString(this);
    }

    public String getPlanId()
    {
        return planId;
    }

    public void setPlanId(String planId)
    {
        this.planId = planId;
    }

    public long getNumIid()
    {
        return numIid;
    }

    public void setNumIid(long numIid)
    {
        this.numIid = numIid;
    }

    public String getNick()
    {
        return nick;
    }

    public void setNick(String nick)
    {
        this.nick = nick;
    }

    public int getPlanWeek()
    {
        return planWeek;
    }

    public void setPlanWeek(int planWeek)
    {
        this.planWeek = planWeek;
    }

    public String getPlanTime()
    {
        return planTime;
    }

    public void setPlanTime(String planTime)
    {
        this.planTime = planTime;
    }

    public String getItemTitle()
    {
        return itemTitle;
    }

    public void setItemTitle(String itemTitle)
    {
        this.itemTitle = itemTitle;
    }

    public int getItemNum()
    {
        return itemNum;
    }

    public void setItemNum(int itemNum)
    {
        this.itemNum = itemNum;
    }

    public int getItemStatus()
    {
        return itemStatus;
    }

    public void setItemStatus(int itemStatus)
    {
        this.itemStatus = itemStatus;
    }

    public int getItemSequence()
    {
        return itemSequence;
    }

    public void setItemSequence(int itemSequence)
    {
        this.itemSequence = itemSequence;
    }

    public String getItemPicUrl()
    {
        return itemPicUrl;
    }

    public void setItemPicUrl(String itemPicUrl)
    {
        this.itemPicUrl = itemPicUrl;
    }

    public long getCid()
    {
        return cid;
    }

    public void setCid(long cid)
    {
        this.cid = cid;
    }

    public String getDelistTime()
    {
        return delistTime;
    }

    public void setDelistTime(String delistTime)
    {
        this.delistTime = delistTime;
    }

    public String getOperateTime()
    {
        return operateTime;
    }

    public void setOperateTime(String operateTime)
    {
        this.operateTime = operateTime;
    }

    public int getOperateStatus()
    {
        return operateStatus;
    }

    public void setOperateStatus(int operateStatus)
    {
        this.operateStatus = operateStatus;
    }

    public String getOperateDetail()
    {
        return operateDetail;
    }

    public void setOperateDetail(String operateDetail)
    {
        this.operateDetail = operateDetail;
    }

}
